Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

normalize.css

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize.css

A modern alternative to CSS resets

  • 4.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
883K
decreased by-17.8%
Maintainers
3
Weekly downloads
 
Created

What is normalize.css?

The npm package normalize.css is a modern, HTML5-ready alternative to CSS resets. It makes browsers render all elements more consistently and in line with modern standards by precisely targeting only the styles that need normalizing.

What are normalize.css's main functionalities?

HTML Element Normalization

Ensures consistent line height and prevents font size adjustments after device orientation changes.

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

Section and Article Styles

Removes default margins from the body and ensures the 'main' element is displayed consistently across browsers.

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the 'main' element consistently in IE.
 */
main {
  display: block;
}

Text-Level Semantics

Adjusts box sizing and border color inheritance in Firefox for elements like <hr>.

/* Grouping content
   ========================================================================== */
/**
 * Add the correct box sizing in Firefox.
 * Correct the inheritance of border color in Firefox. (Bug 688556)
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

Other packages similar to normalize.css

FAQs

Package last updated on 30 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc